﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using KRS.Model;


namespace KRS.ViewModel.HouseInfoVMs
{
    public partial class HouseInfoTemplateVM : BaseTemplateVM
    {
        [Display(Name = "楼盘")]
        public ExcelPropety LouPan_Excel = ExcelPropety.CreateProperty<HouseInfo>(x => x.LouPan);
        [Display(Name = "标题")]
        public ExcelPropety Title_Excel = ExcelPropety.CreateProperty<HouseInfo>(x => x.Title);
        [Display(Name = "单价")]
        public ExcelPropety UnitPrice_Excel = ExcelPropety.CreateProperty<HouseInfo>(x => x.UnitPrice);
        [Display(Name = "最小套价")]
        public ExcelPropety MinTaoPrice_Excel = ExcelPropety.CreateProperty<HouseInfo>(x => x.MinTaoPrice);
        [Display(Name = "最大套价")]
        public ExcelPropety MaxTaoPrice_Excel = ExcelPropety.CreateProperty<HouseInfo>(x => x.MaxTaoPrice);
        [Display(Name = "面积")]
        public ExcelPropety MianJi_Excel = ExcelPropety.CreateProperty<HouseInfo>(x => x.MianJi);
        [Display(Name = "地址")]
        public ExcelPropety Address_Excel = ExcelPropety.CreateProperty<HouseInfo>(x => x.Address);
        [Display(Name = "居数")]
        public ExcelPropety JuNum_Excel = ExcelPropety.CreateProperty<HouseInfo>(x => x.JuNum);
        [Display(Name = "厅数")]
        public ExcelPropety TingNum_Excel = ExcelPropety.CreateProperty<HouseInfo>(x => x.TingNum);
        [Display(Name = "卫数")]
        public ExcelPropety WeiNum_Excel = ExcelPropety.CreateProperty<HouseInfo>(x => x.WeiNum);

	    protected override void InitVM()
        {
        }

    }

    public class HouseInfoImportVM : BaseImportVM<HouseInfoTemplateVM, HouseInfo>
    {

    }

}
